package com.layfuture.lftserver.order;

import com.layfuture.lftserver.order.spi.OrderDto;
import com.layfuture.lftserver.product.spi.ProductInterface;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequiredArgsConstructor
@RequestMapping("order")
public class OrderController {

    private final OrderManagement orderManagement;

    @PutMapping("complete")
    public void complete() {
        OrderDto dto = new OrderDto();
        dto.setId(1l);
        orderManagement.complete(dto);

    }
}
